package command;

import common.ParseException;
import file.FileString;

public class Selector extends Cmd {
    protected Selector(FileString parentFileString) {
        super(parentFileString);
    }

    @Override
    public Cmd getCopy() throws ParseException {
        Selector tCmd = new Selector(getParentFileString().getCopy());
        for (Cmd ttCmd : getBody())
            tCmd.addCmdToBody(ttCmd.getCopy());
        return tCmd;
    }
}
